import { reactive } from "vue";
import type { FormRules } from "element-plus";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
  Username: [{ required: true, message: "用户名为必填项", trigger: "blur" }],
  realname: [{ required: true, message: "姓名为必填项", trigger: "blur" }],
  Mobile: [{ required: true, message: "手机号码为必填项", trigger: "blur" }],
  Status: [{ required: true, message: "状态为必填项", trigger: "blur,change" }],
  RoleIds: [{ required: true, message: "角色为必填项", trigger: "change" }]
});
